{include file=$header_start}
{strip}
<link rel="stylesheet" type="text/css" href="{$siteroot}/templates/default/style/dashboard.css">
<link rel="stylesheet" type="text/css" href="{$siteroot}/templates/default/style/find_job_list.css">
{/strip}
{include file=$header_end}


<section class="middle_portion">
	<section class="inner_head">Dashboard</section>
    <section class="inner_containstart">
    	<!-- dashboard Left Content Start -->
        	{include file=$cms_left_content}
        <!-- dashboard Left Content End -->
        <!-- dashboard Right Content Start -->
        	<section class="dash_right">
            <section class="title_box">
            	<h4>My Rating & Feedback </h4>
            	 <section class="clear"></section>
                 
                </section>                             
				{if $msg} <span style="padding:10px">{$msg} </span>{/if}
                <section class="mainbox_findjobs">
                <form method="POST" name="frmtradesuserlisting" id="frmtradesuserlisting" >
				<section class="rating_manag_box">
                <form name="searchfrm" id="searchfrm" action="{$siteroot}/leads/myleads/" method="POST" >
                 <section class="group_search_box" style="padding-left:315px;">
                     <input type="text" name="search" id="search" class="input" value="{if $search neq ''}{$search}{else}Homeowner Name{/if}" onfocus="this.value=''" onblur="if(this.value=='')this.value='Homeowner Name'" />
                    <input type="submit" class="btn" value="Go">
                    &nbsp;&nbsp;
                    <input type="button" class="btn btnwdth70" value="Clear" onclick="javascript:window.location='{$siteroot}/rating/';">
                    <section class="clear"></section>
                  </section>
                  </form>
                	<dl>
                    	<dt class="col1">Homeowner Name</dt>
                        <dt class="col2">Job Id</dt>
                        <dt class="col3">Job Description</dt>
                        <dt class="col4">Rating</dt>
                        <dt class="col5">Feedback</dt>
                        <dt class="col6">Date</dt>
                        <section class="clear"></section>
                    </dl>
                    {section name=i loop=$reviewsArray}
                    <dl>
                    	<dd class="col1"> {$reviewsArray[i].first_name} {$reviewsArray[i].last_name} </dd>
						<dd class="col2">
                        	#PR{$reviewsArray[i].job_id} 
                        </dd>
						<dd class="col3">
                        	{$reviewsArray[i].job_desc|truncate:50:"..."} 
                        </dd>
                        <dd class="col4"> 
                            
                            {section name=j loop=$reviewsArray[i].total_rating start=0 max =$reviewsArray[i].total_rating}
                                <span class=""><img src="{$siteroot}/templates/default/images/y_star.png" alt=""  class=""/></span>
                            {/section}
                            
                            {section name=k loop=$reviewsArray[i].remaining_rating start =0 max=$reviewsArray[i].remaining_rating}
                                <span class="star_1"><img src="{$siteroot}/templates/default/images/g_star.png" alt=""  class=""/></span>
                            {/section}
                        
                        </dd>
                        <dd class="col5">
                        	<a href="{$siteroot}/rating/{$reviewsArray[i].id|base64_encode}/ratingdetail">{$reviewsArray[i].message|truncate:50:"..."} </a>
                        </dd>
                        <dd class="col6">
                        	{$reviewsArray[i].added_date} 
                        </dd>
                        
                        <section class="clear"></section>
                    </dl>
                    {sectionelse}
                    	<div class="error" style="padding:10px;text-align:center;">Oops, Sorry there are no user rated.</div>
                    {/section}
                  		{if $pagenation}
                            <section class="pagna">
                            {$pagenation}
                            </section>
                        {/if}
                             

                        
                        <section class="clear"></section>
                </section>   
                </form>
                
                
                <section class="clear"></section>
                 	 <section class="bgimg_shadow"></section>
                 	<section class="clear"></section>
                </section>  
            </section>
        <!-- dashboard Right Content End -->
        	<section class="clear"></section>
    </section>
</section>
{include file=$footer}